import axios from 'axios';
import Cookies from 'js-cookie';

export function get (url) {
    return axios.get(url);
}

export function getT (url) {
    return axios.get(url, {
        headers: {
            token: Cookies.get('NCCLOUD_TOKEN')
        }
    });
}

export function getSeafile (url, headers, param) {
    return axios.get(url, {
        headers: {
            Authorization: 'Token ' + headers.token
        }
    });
}
